var express = require('express')
var router = express.Router()
var apiHandler = require('../router_handler/api')
var numGen = require('../middleware/numGenerator')
// const {requestVerify:verify} = require('../middleware/verify')

//获取商品列表
router.get('/goods', apiHandler.getGoodsList)
//获取商品信息
router.get('/goods/:goodId', apiHandler.getGoodsByID)

//获取种类列表
router.get('/categories', apiHandler.getCategory)

//token验证
router.post('/tokenVerify', apiHandler.tokenVerify)

// //提交订单
router.post('/orders', numGen, apiHandler.addOrdering)


module.exports = router
